// src/store/loading.ts
import { defineStore } from 'pinia';

interface LoadingState {
    isSpinning: boolean;
}

export const useLoadingStore = defineStore({
    id: 'loading',
    state: (): LoadingState => ({
        isSpinning: false,
    }),
    actions: {
        setSpinning(value: boolean) {
            this.isSpinning = value;
        }
    }
});
